home *** CD-ROM | disk | FTP | other *** search
- REBOOT.EXE version 1.5 dtd 28 Mar 1987
-
- PREPARED BY: Jon R. Millen
- ------------
-
- REFERENCE: DOS Manual Chapter 4 ( versions 2.1, 3.1)
- ----------
-
- PURPOSE:
- -----------
- The purpose of this tech note is to document the organization and
- software which permits a user to reboot a PC using a different
- CONFIG.SYS file and, optionally, a different AUTOEXEC.BAT file.
-
- STATEMENT OF THE PROBLEM:
- -------------------------
- During the PC "boot" process, DOS looks for the CONFIG.SYS file
- in the root directory of the disk involved in the boot. As
- indicated in the reference manual, the CONFIG.SYS file is simply
- a file which contains "instructions to DOS" relative to how to
- organize the memory and which, if any, device drivers should be
- installed. The majority of machine configurations are fairly
- stable which results in a stable CONFIG.SYS file. In stable
- environments there is no CONFIG.SYS problem. Many users do not
- even know they are using CONFIG.SYS.
-
- However, over time two things have occurred which tend to
- complicate the "stability" of a given installation, namely:
-
- 1.)Software functionality has been added to the machine
- using "device drivers" which must be installed at boot
- time via CONFIG.SYS. IBM's VIRTUAL DISK, VDISK,is an
- example of a pure software "add on".
-
- 2.)The hardware "add on" market has proliferated at a
- very rapid pace. Many of the products are integrated
- into the system using device drivers which must be
- installed via CONFIG.SYS. The recent memory boards
- RAMPAGE, from AST, and ABOVE BOARD, from INTEL, are two
- examples.
-
- The problem arises at installations where the user desires to
- invoke different CONFIG.SYS files, ie, different machine
- configurations, for different purposes. The `manual' solution is
- to maintain a number of named configuration files somewhere on
- disk and copy the desired file into the CONFIG.SYS file in the
- root directory and subsequently reboot. In some cases the problem
- extends to the autoexec.bat file also.
-
- Aside from the time involved in the manual copy procedure, the
- root directory of the disk is involved which presents a certain
- risk to the average user. (I have erased key files in the root by
- accident on more than one occasion.)
-
- The desired goal is to present the user with a solution to the
- the CONFIG.SYS change problem which minimizes both the risk and èthe time spent.
-
- ONE SOLUTION:
- -------------
- To address the CONFIG.SYS problem, I wrote the program
- REBOOT. Written in "C", REBOOT is currently under test at the
- 8th Street Installation.
-
- REBOOT GENERAL DESCRIPTION
-
- Program assumptions:
- REBOOT assumes that the various configuration files
- all stored in a directory named: \CONFIGS
- The configuration files can be named anything the
- user chooses. Egs:
-
- STANDARD, BARE, ABOVE, RAMPAGE, IDEA
-
- Relative to configuration files, suffixes can be used but
- they are optional: Egs:
-
- BARE.CFG , ABOVE.CFG
-
- Program use:
- 1.)Execute a "reboot":
-
- When the user decides to use a configuration file
- different than the one used last, the reboot is
- accomplished using the command:
-
- REBOOT configfilename
-
- where "configfilename" is the valid name of any
- configuration file in directory \CONFIGS.
-
- Eg: REBOOT STANDARD
-
- The program will copy the named program into the root
- directory renaming it CONFIG.SYS in the process. Upon
- completion of the copy,the program initiates a
- "warm" reboot of the machine.
-
- 2.)Check available configuration files:
-
- When the user wants to check his/her choices, the
- command:
-
- REBOOT
-
- will display the names of the available configuration
- files.
-
- Note: The configuration file used to boot the machine
- will remain in effect until changed by the user.
-
-
- VERSION 1.5
- -------------
- Version 1.5 added the possibility of also copying a corresponding
- batch file to serve as the "rebooted" autoexec.bat file.
-
- In DOS terms:
- If a file with the prefix of the file named in the command and a
- suffix of .bat exists in directory \CONFIGS, prior to reboot such
- a file will be copied to the root directory renamed AUTOEXEC.BAT.
-
- The intentions of these naming conventions are:
- 1. Maintain upward compatibility with REBOOT version 1.0.
- 2. Make the use of a .bat file purely optional.
- 3. Provide a "pairing" of names.
-
- Examples of paired names that will work are:
- RAMPAGE ABOVE.CFN BARE
- RAMPAGE.BAT ABOVE.BAT (no corresponding .bat)
-
- Note: The configuration file used to boot the machine
- and the corresponding .bat file will remain in effect
- until changed by the user.
-
-
- PROGRAM STATUS:
- ----------------
- REBOOT.EXE has been released to the public domain and may be used
- for any purpose whatsoever.
-
-
- QUESTIONS OR PROBLEMS:
- ----------------------èPlease direct any questions or problems to the author at the
- address below:
- 60 E. 8th Street, Apt. 32 F
- New York, NY, 10003